<?php
	/**
	 * This is a MetaControl class, providing a QForm or QPanel access to event handlers
	 * and QControls to perform the Create, Edit, and Delete functionality
	 * of the MantisBugHistoryTable class.  This code-generated class
	 * contains all the basic elements to help a QPanel or QForm display an HTML form that can
	 * manipulate a single MantisBugHistoryTable object.
	 *
	 * To take advantage of some (or all) of these control objects, you
	 * must create a new QForm or QPanel which instantiates a MantisBugHistoryTableMetaControl
	 * class.
	 *
	 * Any and all changes to this file will be overwritten with any subsequent
	 * code re-generation.
	 *
	 * @package My QCubed Application
	 * @subpackage MetaControls
	 * @property-read MantisBugHistoryTable $MantisBugHistoryTable the actual MantisBugHistoryTable data class being edited
	 * @property QLabel $IdControl
	 * @property-read QLabel $IdLabel
	 * @property QIntegerTextBox $UserIdControl
	 * @property-read QLabel $UserIdLabel
	 * @property QIntegerTextBox $BugIdControl
	 * @property-read QLabel $BugIdLabel
	 * @property QTextBox $FieldNameControl
	 * @property-read QLabel $FieldNameLabel
	 * @property QTextBox $OldValueControl
	 * @property-read QLabel $OldValueLabel
	 * @property QTextBox $NewValueControl
	 * @property-read QLabel $NewValueLabel
	 * @property QIntegerTextBox $TypeControl
	 * @property-read QLabel $TypeLabel
	 * @property QIntegerTextBox $DateModifiedControl
	 * @property-read QLabel $DateModifiedLabel
	 * @property-read string $TitleVerb a verb indicating whether or not this is being edited or created
	 * @property-read boolean $EditMode a boolean indicating whether or not this is being edited or created
	 */

	class MantisBugHistoryTableMetaControlGen extends QBaseClass {
		// General Variables
		/**
		 * @var MantisBugHistoryTable objMantisBugHistoryTable
		 * @access protected
		 */
		protected $objMantisBugHistoryTable;
		/**
		 * @var QForm|QControl objParentObject
		 * @access protected
		 */
		protected $objParentObject;
		/**
		 * @var string strTitleVerb
		 * @access protected
		 */
		protected $strTitleVerb;
		/**
		 * @var boolean blnEditMode
		 * @access protected
		 */
		protected $blnEditMode;

		// Controls that allow the editing of MantisBugHistoryTable's individual data fields
		/**
		 * @var QLabel lblId
		 * @access protected
		 */
		protected $lblId;
		/**
		 * @var QIntegerTextBox txtUserId
		 * @access protected
		 */
		protected $txtUserId;
		/**
		 * @var QIntegerTextBox txtBugId
		 * @access protected
		 */
		protected $txtBugId;
		/**
		 * @var QTextBox txtFieldName
		 * @access protected
		 */
		protected $txtFieldName;
		/**
		 * @var QTextBox txtOldValue
		 * @access protected
		 */
		protected $txtOldValue;
		/**
		 * @var QTextBox txtNewValue
		 * @access protected
		 */
		protected $txtNewValue;
		/**
		 * @var QIntegerTextBox txtType
		 * @access protected
		 */
		protected $txtType;
		/**
		 * @var QIntegerTextBox txtDateModified
		 * @access protected
		 */
		protected $txtDateModified;

		// Controls that allow the viewing of MantisBugHistoryTable's individual data fields
		/**
		 * @var QLabel lblUserId
		 * @access protected
		 */
		protected $lblUserId;
		/**
		 * @var QLabel lblBugId
		 * @access protected
		 */
		protected $lblBugId;
		/**
		 * @var QLabel lblFieldName
		 * @access protected
		 */
		protected $lblFieldName;
		/**
		 * @var QLabel lblOldValue
		 * @access protected
		 */
		protected $lblOldValue;
		/**
		 * @var QLabel lblNewValue
		 * @access protected
		 */
		protected $lblNewValue;
		/**
		 * @var QLabel lblType
		 * @access protected
		 */
		protected $lblType;
		/**
		 * @var QLabel lblDateModified
		 * @access protected
		 */
		protected $lblDateModified;

		// QListBox Controls (if applicable) to edit Unique ReverseReferences and ManyToMany References

		// QLabel Controls (if applicable) to view Unique ReverseReferences and ManyToMany References


		/**
		 * Main constructor.  Constructor OR static create methods are designed to be called in either
		 * a parent QPanel or the main QForm when wanting to create a
		 * MantisBugHistoryTableMetaControl to edit a single MantisBugHistoryTable object within the
		 * QPanel or QForm.
		 *
		 * This constructor takes in a single MantisBugHistoryTable object, while any of the static
		 * create methods below can be used to construct based off of individual PK ID(s).
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisBugHistoryTableMetaControl
		 * @param MantisBugHistoryTable $objMantisBugHistoryTable new or existing MantisBugHistoryTable object
		 */
		 public function __construct($objParentObject, MantisBugHistoryTable $objMantisBugHistoryTable) {
			// Setup Parent Object (e.g. QForm or QPanel which will be using this MantisBugHistoryTableMetaControl)
			$this->objParentObject = $objParentObject;

			// Setup linked MantisBugHistoryTable object
			$this->objMantisBugHistoryTable = $objMantisBugHistoryTable;

			// Figure out if we're Editing or Creating New
			if ($this->objMantisBugHistoryTable->__Restored) {
				$this->strTitleVerb = QApplication::Translate('Edit');
				$this->blnEditMode = true;
			} else {
				$this->strTitleVerb = QApplication::Translate('Create');
				$this->blnEditMode = false;
			}
		 }

		/**
		 * Static Helper Method to Create using PK arguments
		 * You must pass in the PK arguments on an object to load, or leave it blank to create a new one.
		 * If you want to load via QueryString or PathInfo, use the CreateFromQueryString or CreateFromPathInfo
		 * static helper methods.  Finally, specify a CreateType to define whether or not we are only allowed to
		 * edit, or if we are also allowed to create a new one, etc.
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisBugHistoryTableMetaControl
		 * @param integer $intId primary key value
		 * @param QMetaControlCreateType $intCreateType rules governing MantisBugHistoryTable object creation - defaults to CreateOrEdit
 		 * @return MantisBugHistoryTableMetaControl
		 */
		public static function Create($objParentObject, $intId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			// Attempt to Load from PK Arguments
			if (strlen($intId)) {
				$objMantisBugHistoryTable = MantisBugHistoryTable::Load($intId);

				// MantisBugHistoryTable was found -- return it!
				if ($objMantisBugHistoryTable)
					return new MantisBugHistoryTableMetaControl($objParentObject, $objMantisBugHistoryTable);

				// If CreateOnRecordNotFound not specified, throw an exception
				else if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound)
					throw new QCallerException('Could not find a MantisBugHistoryTable object with PK arguments: ' . $intId);

			// If EditOnly is specified, throw an exception
			} else if ($intCreateType == QMetaControlCreateType::EditOnly)
				throw new QCallerException('No PK arguments specified');

			// If we are here, then we need to create a new record
			return new MantisBugHistoryTableMetaControl($objParentObject, new MantisBugHistoryTable());
		}

		/**
		 * Static Helper Method to Create using PathInfo arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisBugHistoryTableMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing MantisBugHistoryTable object creation - defaults to CreateOrEdit
		 * @return MantisBugHistoryTableMetaControl
		 */
		public static function CreateFromPathInfo($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::PathInfo(0);
			return MantisBugHistoryTableMetaControl::Create($objParentObject, $intId, $intCreateType);
		}

		/**
		 * Static Helper Method to Create using QueryString arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisBugHistoryTableMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing MantisBugHistoryTable object creation - defaults to CreateOrEdit
		 * @return MantisBugHistoryTableMetaControl
		 */
		public static function CreateFromQueryString($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::QueryString('intId');
			return MantisBugHistoryTableMetaControl::Create($objParentObject, $intId, $intCreateType);
		}



		///////////////////////////////////////////////
		// PUBLIC CREATE and REFRESH METHODS
		///////////////////////////////////////////////

		/**
		 * Create and setup QLabel lblId
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblId_Create($strControlId = null) {
			$this->lblId = new QLabel($this->objParentObject, $strControlId);
			$this->lblId->Name = QApplication::Translate('Id');
			if ($this->blnEditMode)
				$this->lblId->Text = $this->objMantisBugHistoryTable->Id;
			else
				$this->lblId->Text = 'N/A';
			return $this->lblId;
		}

		/**
		 * Create and setup QIntegerTextBox txtUserId
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtUserId_Create($strControlId = null) {
			$this->txtUserId = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtUserId->Name = QApplication::Translate('User Id');
			$this->txtUserId->Text = $this->objMantisBugHistoryTable->UserId;
			$this->txtUserId->Required = true;
			return $this->txtUserId;
		}

		/**
		 * Create and setup QLabel lblUserId
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblUserId_Create($strControlId = null, $strFormat = null) {
			$this->lblUserId = new QLabel($this->objParentObject, $strControlId);
			$this->lblUserId->Name = QApplication::Translate('User Id');
			$this->lblUserId->Text = $this->objMantisBugHistoryTable->UserId;
			$this->lblUserId->Required = true;
			$this->lblUserId->Format = $strFormat;
			return $this->lblUserId;
		}

		/**
		 * Create and setup QIntegerTextBox txtBugId
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtBugId_Create($strControlId = null) {
			$this->txtBugId = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtBugId->Name = QApplication::Translate('Bug Id');
			$this->txtBugId->Text = $this->objMantisBugHistoryTable->BugId;
			$this->txtBugId->Required = true;
			return $this->txtBugId;
		}

		/**
		 * Create and setup QLabel lblBugId
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblBugId_Create($strControlId = null, $strFormat = null) {
			$this->lblBugId = new QLabel($this->objParentObject, $strControlId);
			$this->lblBugId->Name = QApplication::Translate('Bug Id');
			$this->lblBugId->Text = $this->objMantisBugHistoryTable->BugId;
			$this->lblBugId->Required = true;
			$this->lblBugId->Format = $strFormat;
			return $this->lblBugId;
		}

		/**
		 * Create and setup QTextBox txtFieldName
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtFieldName_Create($strControlId = null) {
			$this->txtFieldName = new QTextBox($this->objParentObject, $strControlId);
			$this->txtFieldName->Name = QApplication::Translate('Field Name');
			$this->txtFieldName->Text = $this->objMantisBugHistoryTable->FieldName;
			$this->txtFieldName->Required = true;
			$this->txtFieldName->MaxLength = MantisBugHistoryTable::FieldNameMaxLength;
			return $this->txtFieldName;
		}

		/**
		 * Create and setup QLabel lblFieldName
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblFieldName_Create($strControlId = null) {
			$this->lblFieldName = new QLabel($this->objParentObject, $strControlId);
			$this->lblFieldName->Name = QApplication::Translate('Field Name');
			$this->lblFieldName->Text = $this->objMantisBugHistoryTable->FieldName;
			$this->lblFieldName->Required = true;
			return $this->lblFieldName;
		}

		/**
		 * Create and setup QTextBox txtOldValue
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtOldValue_Create($strControlId = null) {
			$this->txtOldValue = new QTextBox($this->objParentObject, $strControlId);
			$this->txtOldValue->Name = QApplication::Translate('Old Value');
			$this->txtOldValue->Text = $this->objMantisBugHistoryTable->OldValue;
			$this->txtOldValue->Required = true;
			$this->txtOldValue->MaxLength = MantisBugHistoryTable::OldValueMaxLength;
			return $this->txtOldValue;
		}

		/**
		 * Create and setup QLabel lblOldValue
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblOldValue_Create($strControlId = null) {
			$this->lblOldValue = new QLabel($this->objParentObject, $strControlId);
			$this->lblOldValue->Name = QApplication::Translate('Old Value');
			$this->lblOldValue->Text = $this->objMantisBugHistoryTable->OldValue;
			$this->lblOldValue->Required = true;
			return $this->lblOldValue;
		}

		/**
		 * Create and setup QTextBox txtNewValue
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtNewValue_Create($strControlId = null) {
			$this->txtNewValue = new QTextBox($this->objParentObject, $strControlId);
			$this->txtNewValue->Name = QApplication::Translate('New Value');
			$this->txtNewValue->Text = $this->objMantisBugHistoryTable->NewValue;
			$this->txtNewValue->Required = true;
			$this->txtNewValue->MaxLength = MantisBugHistoryTable::NewValueMaxLength;
			return $this->txtNewValue;
		}

		/**
		 * Create and setup QLabel lblNewValue
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblNewValue_Create($strControlId = null) {
			$this->lblNewValue = new QLabel($this->objParentObject, $strControlId);
			$this->lblNewValue->Name = QApplication::Translate('New Value');
			$this->lblNewValue->Text = $this->objMantisBugHistoryTable->NewValue;
			$this->lblNewValue->Required = true;
			return $this->lblNewValue;
		}

		/**
		 * Create and setup QIntegerTextBox txtType
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtType_Create($strControlId = null) {
			$this->txtType = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtType->Name = QApplication::Translate('Type');
			$this->txtType->Text = $this->objMantisBugHistoryTable->Type;
			$this->txtType->Required = true;
			return $this->txtType;
		}

		/**
		 * Create and setup QLabel lblType
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblType_Create($strControlId = null, $strFormat = null) {
			$this->lblType = new QLabel($this->objParentObject, $strControlId);
			$this->lblType->Name = QApplication::Translate('Type');
			$this->lblType->Text = $this->objMantisBugHistoryTable->Type;
			$this->lblType->Required = true;
			$this->lblType->Format = $strFormat;
			return $this->lblType;
		}

		/**
		 * Create and setup QIntegerTextBox txtDateModified
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtDateModified_Create($strControlId = null) {
			$this->txtDateModified = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtDateModified->Name = QApplication::Translate('Date Modified');
			$this->txtDateModified->Text = $this->objMantisBugHistoryTable->DateModified;
			$this->txtDateModified->Required = true;
			return $this->txtDateModified;
		}

		/**
		 * Create and setup QLabel lblDateModified
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblDateModified_Create($strControlId = null, $strFormat = null) {
			$this->lblDateModified = new QLabel($this->objParentObject, $strControlId);
			$this->lblDateModified->Name = QApplication::Translate('Date Modified');
			$this->lblDateModified->Text = $this->objMantisBugHistoryTable->DateModified;
			$this->lblDateModified->Required = true;
			$this->lblDateModified->Format = $strFormat;
			return $this->lblDateModified;
		}



		/**
		 * Refresh this MetaControl with Data from the local MantisBugHistoryTable object.
		 * @param boolean $blnReload reload MantisBugHistoryTable from the database
		 * @return void
		 */
		public function Refresh($blnReload = false) {
			if ($blnReload)
				$this->objMantisBugHistoryTable->Reload();

			if ($this->lblId) if ($this->blnEditMode) $this->lblId->Text = $this->objMantisBugHistoryTable->Id;

			if ($this->txtUserId) $this->txtUserId->Text = $this->objMantisBugHistoryTable->UserId;
			if ($this->lblUserId) $this->lblUserId->Text = $this->objMantisBugHistoryTable->UserId;

			if ($this->txtBugId) $this->txtBugId->Text = $this->objMantisBugHistoryTable->BugId;
			if ($this->lblBugId) $this->lblBugId->Text = $this->objMantisBugHistoryTable->BugId;

			if ($this->txtFieldName) $this->txtFieldName->Text = $this->objMantisBugHistoryTable->FieldName;
			if ($this->lblFieldName) $this->lblFieldName->Text = $this->objMantisBugHistoryTable->FieldName;

			if ($this->txtOldValue) $this->txtOldValue->Text = $this->objMantisBugHistoryTable->OldValue;
			if ($this->lblOldValue) $this->lblOldValue->Text = $this->objMantisBugHistoryTable->OldValue;

			if ($this->txtNewValue) $this->txtNewValue->Text = $this->objMantisBugHistoryTable->NewValue;
			if ($this->lblNewValue) $this->lblNewValue->Text = $this->objMantisBugHistoryTable->NewValue;

			if ($this->txtType) $this->txtType->Text = $this->objMantisBugHistoryTable->Type;
			if ($this->lblType) $this->lblType->Text = $this->objMantisBugHistoryTable->Type;

			if ($this->txtDateModified) $this->txtDateModified->Text = $this->objMantisBugHistoryTable->DateModified;
			if ($this->lblDateModified) $this->lblDateModified->Text = $this->objMantisBugHistoryTable->DateModified;

		}



		///////////////////////////////////////////////
		// PROTECTED UPDATE METHODS for ManyToManyReferences (if any)
		///////////////////////////////////////////////





		///////////////////////////////////////////////
		// PUBLIC MANTISBUGHISTORYTABLE OBJECT MANIPULATORS
		///////////////////////////////////////////////

		/**
		 * This will save this object's MantisBugHistoryTable instance,
		 * updating only the fields which have had a control created for it.
		 */
		public function SaveMantisBugHistoryTable() {
			try {
				// Update any fields for controls that have been created
				if ($this->txtUserId) $this->objMantisBugHistoryTable->UserId = $this->txtUserId->Text;
				if ($this->txtBugId) $this->objMantisBugHistoryTable->BugId = $this->txtBugId->Text;
				if ($this->txtFieldName) $this->objMantisBugHistoryTable->FieldName = $this->txtFieldName->Text;
				if ($this->txtOldValue) $this->objMantisBugHistoryTable->OldValue = $this->txtOldValue->Text;
				if ($this->txtNewValue) $this->objMantisBugHistoryTable->NewValue = $this->txtNewValue->Text;
				if ($this->txtType) $this->objMantisBugHistoryTable->Type = $this->txtType->Text;
				if ($this->txtDateModified) $this->objMantisBugHistoryTable->DateModified = $this->txtDateModified->Text;

				// Update any UniqueReverseReferences (if any) for controls that have been created for it

				// Save the MantisBugHistoryTable object
				$this->objMantisBugHistoryTable->Save();

				// Finally, update any ManyToManyReferences (if any)
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * This will DELETE this object's MantisBugHistoryTable instance from the database.
		 * It will also unassociate itself from any ManyToManyReferences.
		 */
		public function DeleteMantisBugHistoryTable() {
			$this->objMantisBugHistoryTable->Delete();
		}



		///////////////////////////////////////////////
		// PUBLIC GETTERS and SETTERS
		///////////////////////////////////////////////

		/**
		 * Override method to perform a property "Get"
		 * This will get the value of $strName
		 *
		 * @param string $strName Name of the property to get
		 * @return mixed
		 */
		public function __get($strName) {
			switch ($strName) {
				// General MetaControlVariables
				case 'MantisBugHistoryTable': return $this->objMantisBugHistoryTable;
				case 'TitleVerb': return $this->strTitleVerb;
				case 'EditMode': return $this->blnEditMode;

				// Controls that point to MantisBugHistoryTable fields -- will be created dynamically if not yet created
				case 'IdControl':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'IdLabel':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'UserIdControl':
					if (!$this->txtUserId) return $this->txtUserId_Create();
					return $this->txtUserId;
				case 'UserIdLabel':
					if (!$this->lblUserId) return $this->lblUserId_Create();
					return $this->lblUserId;
				case 'BugIdControl':
					if (!$this->txtBugId) return $this->txtBugId_Create();
					return $this->txtBugId;
				case 'BugIdLabel':
					if (!$this->lblBugId) return $this->lblBugId_Create();
					return $this->lblBugId;
				case 'FieldNameControl':
					if (!$this->txtFieldName) return $this->txtFieldName_Create();
					return $this->txtFieldName;
				case 'FieldNameLabel':
					if (!$this->lblFieldName) return $this->lblFieldName_Create();
					return $this->lblFieldName;
				case 'OldValueControl':
					if (!$this->txtOldValue) return $this->txtOldValue_Create();
					return $this->txtOldValue;
				case 'OldValueLabel':
					if (!$this->lblOldValue) return $this->lblOldValue_Create();
					return $this->lblOldValue;
				case 'NewValueControl':
					if (!$this->txtNewValue) return $this->txtNewValue_Create();
					return $this->txtNewValue;
				case 'NewValueLabel':
					if (!$this->lblNewValue) return $this->lblNewValue_Create();
					return $this->lblNewValue;
				case 'TypeControl':
					if (!$this->txtType) return $this->txtType_Create();
					return $this->txtType;
				case 'TypeLabel':
					if (!$this->lblType) return $this->lblType_Create();
					return $this->lblType;
				case 'DateModifiedControl':
					if (!$this->txtDateModified) return $this->txtDateModified_Create();
					return $this->txtDateModified;
				case 'DateModifiedLabel':
					if (!$this->lblDateModified) return $this->lblDateModified_Create();
					return $this->lblDateModified;
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

		/**
		 * Override method to perform a property "Set"
		 * This will set the property $strName to be $mixValue
		 *
		 * @param string $strName Name of the property to set
		 * @param string $mixValue New value of the property
		 * @return mixed
		 */
		public function __set($strName, $mixValue) {
			try {
				switch ($strName) {
					// Controls that point to MantisBugHistoryTable fields
					case 'IdControl':
						return ($this->lblId = QType::Cast($mixValue, 'QControl'));
					case 'UserIdControl':
						return ($this->txtUserId = QType::Cast($mixValue, 'QControl'));
					case 'BugIdControl':
						return ($this->txtBugId = QType::Cast($mixValue, 'QControl'));
					case 'FieldNameControl':
						return ($this->txtFieldName = QType::Cast($mixValue, 'QControl'));
					case 'OldValueControl':
						return ($this->txtOldValue = QType::Cast($mixValue, 'QControl'));
					case 'NewValueControl':
						return ($this->txtNewValue = QType::Cast($mixValue, 'QControl'));
					case 'TypeControl':
						return ($this->txtType = QType::Cast($mixValue, 'QControl'));
					case 'DateModifiedControl':
						return ($this->txtDateModified = QType::Cast($mixValue, 'QControl'));
					default:
						return parent::__set($strName, $mixValue);
				}
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}
	}
?>